<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

if ( ! function_exists('format_date'))
{
 	
	function format_date($mysql_date,$format = "long")
	{

        switch ($format)
        {
            case "long":
            $format = "%j %F %Y";
            break;

            case "short":
            $format = "%j-%m-%Y";
            break;

            default:
            $format = "%j %F %Y";
            break;
            
        }

        return mdate($format, mysql_to_unix($mysql_date)); 
	
	}
}

/* End of file order_helper.php */
/* Location: ./system/application/helpers/string_helper.php */